const { parse } = require('s-yaml');

const yamlString = `
name: John Doe
age: 30
address:
  street: 123 Main St
  city: Anytown
`;

const data = parse(yamlString);
console.log(data);
// 输出: { name: 'John Doe', age: 30, address: { street: '123 Main St', city: 'Anytown' } }
